/* 
 * File:   Lane.cpp
 * Author: mikey
 * 
 * Created on August 25, 2010, 10:01 PM
 */

#include "Lane.h"

Lane::Lane() {
    for(int i=0;i<20;i++) {
        carPosition[i] = Car();
    }
}

void Lane::SetCarPosition(int carMarker, Car newCar) {
    carPosition[carMarker] = newCar;
}

Car Lane::GetCarPosition(int carMarker) {
    return carPosition[carMarker];
}

void Lane::clearCarPosition(int carMarker) {
    carPosition[carMarker] = Car();
}
